package com.qianfeng.openapi.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import com.qianfeng.openapi.pojo.ApiMapping;

@Mapper
public interface ApiMappingMapper {
    //增加
    int insertApiMapping(ApiMapping apiMapping);
    //删除单个或者全部
    int deleteApiMapping(int[] ids);
    //修改
    int updateApiMapping(ApiMapping apiMapping);
    //查询单个
    ApiMapping selectApiMappingByGatewayApiName(String gatewayApiName);
    //查询所有
    List<ApiMapping> getAllApiMapping(ApiMapping apiMapping);
}
